import request from "@/utils/request.js";
import baseUrl from "@/utils/version.js";

export function login(data) {
    return request.post(baseUrl.system.v1 + "/login", data);
}

export function userinfo() {
    return request.get(baseUrl.system.v1 + "/userinfo");
}

export function logout() {
    return request.post(baseUrl.system.v1 + "/logout");
}